<style>
.bet29Rate{display:block; font-size: 10pt;}
thead td.bet29Rate{}
tbody td.bet29Rate{background-color:#e7ebef; text-align:right; font-weight: bold; color: #FF0000; }
.bet29RateOff{display:none;}
</style>
{menuList}
<br>
<span id="hktime"></span>，<span id="countdownstr"></span>

<form method="post" onsubmit="return chkform(this)" action="op.php?op=agent&fp=bnow3a">

<table cellSpacing="1" cellPadding="3" width="710" border="0" bgcolor="#5A79C6">
<tr bgcolor="#C0D6EB">
  <td bgcolor="#C0D6EB" width="50" align="center">类别</td>
  <td align="center" bgcolor="#E7EBEF" width="110"><input type="radio" name="type" value="48" checked onclick="_showBet29Rate(true,48);"/> 四全中</td>
  <td align="center" bgcolor="#E7EBEF" width="110"><input type="radio" name="type" value="8"  onclick="_showBet29Rate(true,8);"/> 三全中</td>
  <td align="center" bgcolor="#E7EBEF" width="110"><input type="radio" name="type" value="9" onclick="_showBet29Rate(false,0);"> 三中二</td>
  <td align="center" bgcolor="#E7EBEF" width="110"><input type="radio" name="type" value="7" onclick="_showBet29Rate(false,0);"> 二全中</td>
  <td align="center" bgcolor="#E7EBEF" width="110"><input type="radio" name="type" value="10" onclick="_showBet29Rate(false,0);"> 二中特</td>
  <td align="center" bgcolor="#E7EBEF" width="110"><input type="radio" name="type" value="11" onclick="_showBet29Rate(false,0);"> 特串</td>
</tr>
</table>
<table cellSpacing="1" cellPadding="3" width="710" border="0" bgcolor="#5A79C6">
<tr>
  <td bgcolor="#C0D6EB" width="50" align="center">赔率</td>
  <td align="center" bgcolor="#E7EBEF" width="110">
  &nbsp;最高 <b> <font color="#FF0000">{r48_hi}</font></b><br />
  &nbsp;最底 <b> <font color="#FF0000">{r48_lo}</font></b>
  </td>
  <td align="center" bgcolor="#E7EBEF" width="110">
  &nbsp;最高 <b> <font color="#FF0000">{r8_hi}</font></b><br />
  &nbsp;最底 <b> <font color="#FF0000">{r8_lo}</font></b>
  </td>
  <td align="center" bgcolor="#E7EBEF" width="110">(1)&nbsp;中二 <b> <font color="#FF0000">{r9_1}</font></b><br>
	(2)&nbsp;中三 <b> <font color="#FF0000">{r9_2}</font></b></td>
  <td align="center" bgcolor="#E7EBEF" width="110">(1)&nbsp;二全中 <b> <font color="#FF0000">{r7_1}</font></b></td>
  <td align="center" bgcolor="#E7EBEF" width="110">(1)&nbsp;中特 <b> <font color="#FF0000">{r10_1}</font></b><br>
	(2)&nbsp;中二 <b> <font color="#FF0000">{r10_2}</font></b></td>
  <td align="center" bgcolor="#E7EBEF" width="110">(1)&nbsp;特串 <b> <font color="#FF0000">{r11_1}</font></b></td>
</tr>
</table>
<table cellSpacing="1" cellPadding="3" width="710" border="0" bgcolor="#5A79C6">
<tr bgcolor="#C0D6EB">
  <td bgcolor="#C0D6EB" width="50" align="center">注额</td>
  <td align="center" bgcolor="#ffffff" width="110"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=48&page=-1&order=0">{money48}</a></td>
  <td align="center" bgcolor="#ffffff" width="110"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=8&page=-1&order=0">{money08}</a></td>
  <td align="center" bgcolor="#ffffff" width="110"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=55&page=-1&order=0">{money09}</a></td>
  <td align="center" bgcolor="#ffffff" width="110"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=7&page=-1&order=0">{money07}</a></td>
  <td align="center" bgcolor="#ffffff" width="110"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=66&page=-1&order=0">{money10}</a></td>
  <td align="center" bgcolor="#ffffff" width="110"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=11&page=-1&order=0">{money11}</a></td>
</tr>
</table>
<table cellSpacing="2" cellPadding="2" width="710" border="0" class="table0" id="numBlock">
	<thead>
  <tr class=td0 align="center">
		<td height="20" width="49">号码</td>
		<td height="20" width="49" class="bet29Rate">赔率</td>
		<td height="20" width="49">选择</td>
		<td height="20" width="49">号码</td>
		<td height="20" width="49" class="bet29Rate">赔率</td>
    <td height="20" width="49">选择</td>
		<td height="20" width="49">号码</td>
		<td height="20" width="49" class="bet29Rate">赔率</td>
		<td height="20" width="48">选择</td>
		<td height="20" width="49">号码</td>
		<td height="20" width="49" class="bet29Rate">赔率</td>
		<td height="20" width="49">选择</td>
		<td height="20" width="49">号码</td>
		<td height="20" width="49" class="bet29Rate">赔率</td>
		<td height="20" width="49">选择</td>
	</tr>
	</thead>
	<tbody>
	<tr>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>01</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_1}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
    <input type="checkbox" name="num_1"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>11</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_11}</td>
    <td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_11"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>21</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_21}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_21"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>31</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_31}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_31"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>41</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_41}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_41"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>02</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_2}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_2"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>12</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_12}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_12"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>22</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_22}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_22"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>32</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_32}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_32"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>42</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_42}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_42"></td>

	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>03</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_3}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_3"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>13</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_13}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_13"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>23</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_23}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_23"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>33</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_33}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_33"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>43</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_43}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_43"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>04</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_4}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_4"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>14</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_14}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_14"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>24</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_24}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_24"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>34</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_34}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_34"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>44</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_44}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_44"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>05</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_5}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_5"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>15</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_15}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_15"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>25</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_25}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_25"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>35</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_35}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_35"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>45</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_45}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_45"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>06</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_6}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_6"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>16</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_16}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_16"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>26</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_26}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_26"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>36</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_36}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_36"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>46</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_46}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_46"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>07</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_7}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_7"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>17</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_17}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_17"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>27</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_27}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_27"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>37</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_37}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_37"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>47</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_47}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_47"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>08</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_8}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_8"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>18</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_18}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_18"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>28</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_28}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_28"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>38</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_38}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_38"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>48</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_48}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_48"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>09</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_9}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_9"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>19</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_19}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_19"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>29</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_29}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_29"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>39</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_39}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_39"></td>
		<td class="ball_td" align="middle" background="image/green.gif" bgColor="#c0d6eb">
		<b>49</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_49}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_49"></td>
	</tr>
	<tr>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>10</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_10}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_10"></td>
		<td class="ball_td" align="middle" background="image/blue.gif" bgColor="#c0d6eb">
		<b>20</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_20}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_20"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>30</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_30}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_30"></td>
		<td class="ball_td" align="middle" background="image/red.gif" bgColor="#c0d6eb">
		<b>40</b></td>
		<td bgColor="#e7ebef" height="27" width="49" align="center" class="bet29Rate">{r29_40}</td>
		<td bgColor="#e7ebef" height="27" width="49" align="center">
		<input type="checkbox" name="num_40"></td>
		<td colspan="3" bgColor="#e7ebef">
		<p align="center"><font color="#FF0000">请先选择类别</font></td>
	</tr>
	</tbody>
</table>
<br>
<table width="710" cellpadding="1" cellspacing="2" border="1">
	<tr><td class=td5 align=center nowrap>&nbsp;连码走飞&nbsp;</td><td nowrap>&nbsp;&nbsp;金额
	<input name=b23 value="{b23}" size=8>&#12288;
	<input {startnowdisable} type=submit value="走飞">&#12288;<input type=reset value="清除">&#12288;&#12288;&#12288;&#12288;
	<input type=button value="资料刷新" onclick='location.reload()'>&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;&#12288;
	<input type=button value="走飞资料查询" onclick=prot_list2() onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">
	</td></tr>
</table>
</form>
<br><font color="#f80000">※ 连码的赔率为参考赔率，请以注单存档之後的赔率为准!!</font>

<script>

var _nt08 = {money08};
var _nt09 = {money09};
var _nt07 = {money07};
var _nt10 = {money10};
var _nt11 = {money11};

var _r7_1 = {r7_1};
var _r9_1 = {r9_1};
var _r9_2 = {r9_2};
var _r10_1 = {r10_1};
var _r10_2 = {r10_2};
var _r11_1 = {r11_1};

function chkform(f)
{
	var typecheck = 0;
	var ratecheck = 0;
	var numscount = 0;
	var cc = "";
	var rr = "";
	var nn = 0;
	var _num = "";
    for (i=0; i<f.type.length; i++) {
        if (f.type[i].checked) {
            typecheck = 1;
			ratecheck = f.type[i].value;
        }
    }
    if (typecheck==0) {
        alert("请先选择类别！");
		return false;
    }
    for (i=1; i<50; i++) {
		if (f.all["num_"+i].checked) {
			if (numscount > 0) { _num +=","; }
			_num += d2(i);
			numscount++
		}
	}
	if (numscount == 0) {
		alert("请选择号码！");
		return false;
	}
	if (ratecheck==7 || ratecheck==10 || ratecheck==11) {
		if (numscount < 2) {
			alert("至少需选择 2 个号码！");
			return false;
		} else if (numscount > 10) {
			alert("最多只能选择 10 个号码！");
			return false;
		}
	} else if (ratecheck==8 || ratecheck==9) {
		if (numscount < 3) {
			alert("至少需选择 3 个号码！");
			return false;
		} else if (numscount > 10) {
			alert("最多只能选择 10 个号码！");
			return false;
		}
	} else if (ratecheck==29) {
		if (numscount < 5) {
			alert("必需选择 5 个号码！");
			return false;
		} else if (numscount > 5) {
			alert("只能选择 5 个号码！");
			return false;
		}
	}
	if (f.b23.value <= 0) {
		alert("走飞金额不可为 0.");
		return false;
    }
	if (ratecheck==8) {
		cc = "三全中";
		rr = '---';
		nn = numscount*(numscount-1)*(numscount-2)/6;
		if (f.b23.value * nn > _nt08) {
			alert("走飞总金额不可大於「三全中」的下注总金额！");
			return false;
		}
	} else if (ratecheck==9) {
		cc = "三中二";
		rr = _r9_1+", "+_r9_2;
		nn = numscount*(numscount-1)*(numscount-2)/6;
		if (f.b23.value * nn > _nt09) {
			alert("走飞总金额不可大於「三中二」的下注总金额！");
			return false;
		}
	} else if (ratecheck==7) {
		cc = "二全中";
		rr = _r7_1;
		nn = numscount*(numscount-1)/2;
		if (f.b23.value * nn > _nt07) {
			alert("走飞总金额不可大於「二全中」的下注总金额！");
			return false;
		}
	} else if (ratecheck==10) {
		cc = "二中特";
		rr = _r10_1+", "+_r10_2;
		nn = numscount*(numscount-1)/2;
		if (f.b23.value * nn > _nt10) {
			alert("走飞总金额不可大於「二中特」的下注总金额！");
			return false;
		}
	} else if (ratecheck==11) {
		cc = "特串";
		rr = _r11_1;
		nn = numscount*(numscount-1)/2;
		if (f.b23.value * nn > _nt11) {
			alert("走飞总金额不可大於「特串」的下注总金额！");
			return false;
		}
	} else if (ratecheck==29) {
		cc = "五不中";
		rr = "---";
		nn = numscount*(numscount-1)*(numscount-2)*(numscount-3)*(numscount-4)/120;
		if (f.b23.value * nn > _nt29) {
			alert("走飞总金额不可大於「五不中」的下注总金额！");
			return false;
		}
	}
	if (!confirm("连码走飞内容\n———————\n"+cc+" @ "+rr+"\n"+_num+"\n"+"组合共 "+nn+" 组\n———————\n金额合计 "+(f.b23.value*nn)+" \n\n是否确定走飞？")) {
		return false;
	}
}

function prot_list2()
{
	var X = (screen.width-700)/2;
	var Y = (screen.Height-424)/2;
	var newwin = window.open("op.php?op=agent&fp=protlists&bmd=5",'WinPopList','menubar=no,status=yes,scrollbars=no,toolbar=no,top='+Y+',left='+X+',width=700,height=424');
}

function nowdate()
{
	document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds())+"</b>";
	now.setTime(now.getTime() + 1000);
	setTimeout("nowdate()",1000);
}

function countdown()
{
	var str = "<font color=red><b>已经截止下注！</b></font>";
	if (timestap >= 0) {
		timediff = timestap;
		days = Math.floor(timediff / (60 * 60 * 24));
		timediff -= days * (60 * 60 * 24);
		hours = Math.floor(timediff / (60 * 60));
		timediff -= hours * (60 * 60);
		mins = Math.floor(timediff / (60));
		timediff -= mins * (60);
		secs = Math.floor(timediff);
	
		str = "距离截止下注时间还有 ";
		if (days > 0 ) str += "<b>" + days + "</b> 天 ";
		if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
		if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
		str += "<b>" + secs + "</b> 秒 ";
		timestap-=1;
	}
	countdownstr.innerHTML =  str;
	setTimeout("countdown()",1000)
}

var timestap = {timestap};
var now = new Date(1000 * {phptime});

nowdate();
countdown();
_showBet29Rate(true,8);
// -----------------------------------------------------------------------------
// 显示 class 为 bet29Rate 的资料
// @param boolean bShow : true 显示, false 隐藏
// -----------------------------------------------------------------------------
function _showBet29Rate(bShow,idx){     
  oTal = document.getElementById("numBlock");
  if(bShow == false){
    for(var i=0; i < oTal.rows.length; i++){
      for( var j=0; j < oTal.rows[i].cells.length; j++){
        if(oTal.rows[i].cells[j].className == 'bet29Rate'){oTal.rows[i].cells[j].className = 'bet29RateOff';}
      }
    }
  }else{
    for(var i=0; i < oTal.rows.length; i++){
      for( var j=0; j < oTal.rows[i].cells.length; j++){
        if(oTal.rows[i].cells[j].className == 'bet29RateOff' || oTal.rows[i].cells[j].className == 'bet29Rate'){
          oTal.rows[i].cells[j].className = 'bet29Rate';
          obj = oTal.rows[i].cells[j].getElementsByTagName("span");
          if (obj.length>0){//有找到span
            switch(idx){
              case 8:
                obj[0].className = 'disNone';
                obj[1].className = '';
                break;            
              case 29:
                obj[1].className = 'disNone';
                obj[0].className = '';
                break;
            }
          }            
        }
      }
    }
  }
}
// -----------------------------------------------------------------------------
// 是否把 未打勾的 checkbox 设为 disabled
// @param boolean bDis : true 把未勾选的设disabled, false 把全部设为可勾选  
// -----------------------------------------------------------------------------
function _disUnchk(bDis){
  var oChkStr = "";
  var oChk = "";
  if(bDis == false){
    for(var i=1; i < 50; i++){
      oChkStr = "ballNum[" + i + "]";
      document.getElementById(oChkStr).disabled = false;
    }
  }else{
    for(var i=1; i < 50; i++){
      oChkStr = "ballNum[" + i + "]";
      if(document.getElementById(oChkStr).checked == false){
        document.getElementById(oChkStr).disabled = true;
      }else{
        document.getElementById(oChkStr).disabled = false;
      }
    }

  }

}


</script>